{% extends 'base.html' %}
	
{% block title %}
Dlib Group
{% endblock %}

{% block css %}
<link rel="stylesheet" type="text/css" href="/css/posts.css" />
{% endblock %}

{% block bodycontent %}
		<div id="wrapper">
			<div id="header">
				<h1>我的群组</h1>
				<div id="content">
					<div class="grid-16-8 clearfix">
						<div class="article">
							<div class="clear"></div>
							<div id=uiHeaderSection class="zbar clearfix">
								<div>
								<!--
									<span class="now">
										<span>最新话题</span>
									</span>
								-->
									<a href="http://">最新话题</a>
									<a href="http://">我发起的话题</a>
									<a href="http://">我回应的话题</a>
									<a href="http://">帖子</a>
									<span class="now">
										<span>问题</span>
									</span>
								</div>
							</div>
							<div class="clear"></div>
							<div class="intent">
								<table class="olt">
									<tbody>
										<tr>
											<td> </td>
											<td>问题</td>
											<td>群组</td>
											<td>提问者</td>
											<td align="right" nowrap="nowrap">回答</td>
											<td align="right">提问时间</td>
										</tr>
										{% for question in questions %}										
										<tr class="pl">
											<td>
												<img src="/image/question.png" />
											</td>
											<td>
												<a href="http://" title={{ question.0.title }}> {{ question.0.title }} </a>
											</td>
											<td>
												<a href="http://"> {{ question.1 }} </a>
											</td>
											<td> {{ question.0.questioner.name }} </td>
											<td align="right"> {{ question.0.answered_count }} </td>
											<td align="right"> {{ question.0.question_datetime|date:"Y-m-j f" }} </td>
										</tr>
										{% endfor %}
									</tbody>
								</table>
							</div>
						</div>
						<div class="aside">
							<h2>Dlib群组搜索 ...... </h2>
							<div class="indent">
								<div class="infobox">
									<div class="ex1">
										<span></span>
									</div>
									<div class="bd">
										<form id="group_search" name="group_search" action="/search" method="get">
											<div class="ttc">
												<input name="q" class="j a_search_text input_search greyinput" type="text" size="36" maxlength="36" value>
											</div>
											<div class="tc">
												<input class="butt" name="group_submit" type="submit" value="搜索群组">
												
												<input name="topic_submit" class="butt" type="submit" value="搜索发言">
											</div>
										</form>
									</div>
									<div class="ex2">
										<span></span>
									</div>
								</div>
							</div>
							<h2>我参加的群组  ...... </h2>
							 <div class="indent obssin">
									{% for group in groups %}
									<dl class="ob">
										<dt>
											<a href="http://">
												<img src="/image/django.png" class="m_sub_img" alt={{group.name}}>
											</a>
										</dt>
										<dd>
											<a href="http://" >{{group.name}}</a>
											<span>({{ group.members.all|length }})</span>
										</dd>
									</dl>
									{% endfor %}
							 </div>
							 <div class="clear"></div>
							 <p class="p12">
							 	&gt;
							 	<a href="/group/new_group">申请创建群组</a>
							</p>
							<br>
						</div>
						<div class="extra"></div>
					</div>
				</div>
			</div>
		</div>

{% endblock %}

			
				
					
										
										
		